package cn.wolfcode.luowowo.controller;


import cn.wolfcode.luowowo.domain.StrategyComment;
import cn.wolfcode.luowowo.query.StrategyCommentQuery;
import cn.wolfcode.luowowo.service.IStrategyCommentService;
import cn.wolfcode.luowowo.util.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/StrategyCommentComments")
public class StrategyCommentController {

    @Autowired
    private IStrategyCommentService strategyCommentService;


    /**
     * 查询全部攻略评论明细
     * @param qo
     * @return
     */
    @GetMapping("/query")
    public Object query(StrategyCommentQuery qo){
        Page<StrategyComment> query = strategyCommentService.query(qo);
        return JsonResult.success(query);
    }



}
